package com.scjp_Java6.String;
/*1.	Write a code snippet that uses 
 * Strings to generate java.lang.OutOfMemoryError.*/

/**
 * @author adumitrescu
 *
 */
public class Ex2 {
	public static void main(String[] args) {
		String iWillOverflow="day";
		
		while(true){
			iWillOverflow+=iWillOverflow;
		}
	}
}
